package com.gzsxy.esjy.service.core.sign.controller;

import com.gzsxy.esjy.service.core.sign.dto.ElectronicSealDto;
import com.gzsxy.esjy.service.core.sign.entity.ElectronicSeal;
import com.gzsxy.esjy.service.core.sign.service.ElectronicSealService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

@CrossOrigin  //解决跨域
@RestController
@RefreshScope    //动态刷新配置文件-外部配置文件
@RequestMapping("/esjy/e-seal")
@Api(tags = "电子公章",value = "电子公章")
public class ElectronicSealController {

    @Autowired
    private ElectronicSealService electronicSealService;


    @PostMapping("addSeal")
    @ApiOperation(value = "添加公章")
    public void addSeal(@RequestBody ElectronicSealDto sealDto){
        electronicSealService.addSeal(sealDto);
    }

}
